package com.apchernykh.rozhlasapp.utils.podcastsaver;

import android.content.Intent;
import android.net.Uri;
import android.view.View;

import com.apchernykh.ceskyrozhlas.basic.R;
import com.apchernykh.types.Show;

public class DownloadersOnlyRecorder implements IPodcastSaver {

	public void startDownload(final Show iPodcastInfo, View iView) {
		Intent aIntent = new Intent(Intent.ACTION_VIEW);
		aIntent.setDataAndType(
				Uri.parse(iPodcastInfo.getUrl()),
				"application/octet-stream");
		iView.getContext().startActivity(Intent.createChooser(aIntent, iView.getContext().getString(R.string.podcast_download_dialog)));
	}
}